﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;

namespace HomeCareLibrary
{
    // Note: For instructions on enabling IIS6 or IIS7 classic mode, 
    // visit http://go.microsoft.com/?LinkId=9394801

    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AuthConfig.RegisterAuth();

            RegisterBundles(BundleTable.Bundles);
            BundleTable.EnableOptimizations = true;

        }
        public void RegisterBundles(BundleCollection bundles)
        {
            #region[Style]

            bundles.Add(new StyleBundle("~/Content/bundledcss").Include(
                "~/css/bootstrap.min.css",
                 "~/css/style.css",
                  "~/css/cssverticalmenu.css"
                )
              );
            #endregion
            #region[Scripts]
            //Layout Master Page
            bundles.Add(new ScriptBundle("~/Scripts/BundledScripts").Include(
                 "~/js/jquery.js",
                 "~/js/jquery.flippy.min.js",
                "~/js/bootstrap.js",
               "~/js/bootstrap.min.js",
                "~/js/affix.js",
                "~/js/alert.js",
               "~/js/button.js",
               "~/js/collapse.js",
                "~/js/dropdown.js",
                "~/js/tab.js",
               "~/js/transition.js"
              )
            );

            #endregion
        }

    }
}